import request from '@/utils/request'

// 查询BI打标标签组列表
export function listBiRuleTagGroup(query) {
  return request({
    url: '/conf/BiRuleTagGroup/list',
    method: 'get',
    params: query
  })
}
// 查询BI打标标签组列表
export function listByTableName(query) {
  return request({
    url: '/conf/BiRuleTagGroup/listByTableName',
    method: 'get',
    params: query
  })
}
// 查询BI打标标签组详细
export function getBiRuleTagGroup(id) {
  return request({
    url: '/conf/BiRuleTagGroup/' + id,
    method: 'get'
  })
}

// 新增BI打标标签组
export function addBiRuleTagGroup(data) {
  return request({
    url: '/conf/BiRuleTagGroup',
    method: 'post',
    data: data
  })
}
// 新增BI打标标签组
export function updateTagGroupRefRelation(data) {
  return request({
    url: '/conf/BiRelationshopTaggroupRef/updateTagGroupRefRelation',
    method: 'post',
    data: data
  })
}
// 修改BI打标标签组
export function updateBiRuleTagGroup(data) {
  return request({
    url: '/conf/BiRuleTagGroup',
    method: 'put',
    data: data
  })
}

// 删除BI打标标签组
export function delBiRuleTagGroup(id) {
  return request({
    url: '/conf/BiRuleTagGroup/' + id,
    method: 'delete'
  })
}
